package routers

import (
	"quickConnect/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	pathNS:=beego.NewNamespace("/path",
		beego.NSRouter("/",&controllers.PathController{}),
		beego.NSRouter("/mkdir",&controllers.MkdirController{}),
		)
	loginNS := beego.NewNamespace("/login",
		beego.NSRouter("/", &controllers.LoginController{}),
		beego.NSRouter("/enable", &controllers.EnableController{}),
		beego.NSRouter("/disable", &controllers.DisableController{}),
	)
	beego.AddNamespace(loginNS)
	beego.AddNamespace(pathNS)
	beego.Router("/check", &controllers.CheckController{})
	beego.Router("/upload", &controllers.UploadController{})
	beego.Router("/client", &controllers.ClientControllers{})
}
